package gae.testjig.data;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

public final class PMF {
    private static final PersistenceManagerFactory pmfInstance =
        JDOHelper.getPersistenceManagerFactory("transactions-optional");
    private static final PersistenceManagerFactory pmfInstanceManual =
        JDOHelper.getPersistenceManagerFactory("transactions-manual");
    private static final PersistenceManagerFactory pmfInstanceManualTest1 =
        JDOHelper.getPersistenceManagerFactory("transactions-manual-test1");
    private static final PersistenceManagerFactory pmfInstanceManualTest2 =
        JDOHelper.getPersistenceManagerFactory("transactions-manual-test2");

    private PMF() {}

    public static PersistenceManagerFactory get() {
        return pmfInstance;
    }
    public static PersistenceManagerFactory getForTransactions() {
        return pmfInstanceManual;
    }

    public static PersistenceManagerFactory getForTest1() {
        return pmfInstanceManualTest1;
    }

    public static PersistenceManagerFactory getForTest2() {
        return pmfInstanceManualTest2;
    }

}
